package day4;

/**
 * @author oldliu
 * @since 1.0
 */
public class Student {
    String name;
    String quizno;//准考证号
    int chinese;
    int math;
    int english;
    int zonghe;
    public Student(){

    }
    //构造方法，给姓名和语文成绩赋值
    public Student(String n,int chi){
        this.name=n;
        chinese=chi;
    }
    //给姓名和英语成绩赋值
    public Student(int english,String name){
        this.name=name;
        this.english=english;
    }
    //全部
    public Student(String n,String q,int c,int m,int e,int z){
        name=n;
        quizno=q;
        chinese=c;
        math=m;
        english=e;
        zonghe=z;
    }
    public void show(){
        System.out.println("这个考生名叫"+name+",准考证号"+quizno+",语文"+chinese+"，数学"+math+"，英语"+english+" ,综合 "+zonghe);
    }
}
